﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Rio_Framework_Pages_Controls="clr-namespace:Rio.Framework.Pages.Controls;assembly=Rio.Framework.Pages"
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:mvvmLightCommand="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             x:Class="Rio.Manager.Application.Views.FolderTypeAdministrationTabView"
             mc:Ignorable="d"
             d:DesignHeight="768"
             d:DesignWidth="1024">

    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../../Skins/FolderTypeAdministrationTabSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <UserControl.DataContext>
        <Binding Path="FolderTypeAdministrationTab"
                 Source="{StaticResource Locator}" />
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Loaded">
                <mvvmLightCommand:EventToCommand Command="{Binding InitializationCommand}" />
            </i:EventTrigger>
        </i:Interaction.Triggers>

        <Grid.RowDefinitions>
            <RowDefinition Height="140" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border Grid.ColumnSpan="2"
                BorderThickness="0,0,0,1"
                Margin="20,0">
            <Rio_Framework_Pages_Controls:BindableOrganizationFolderTypePanel Mode="Admin"
                                                                              UseDefaultValuesForUser="True"
                                                                              SelectedOrganization="{Binding SelectedOrganization, Mode=TwoWay}"
                                                                              SelectedFolderType="{Binding SelectedFolderType, Mode=TwoWay}"
                                                                              Margin="0,0,0,24"
                                                                              HorizontalAlignment="Center"
                                                                              OrganizationLabel="{Binding OrganizationLabel}"
                                                                              FolderTypeLabel="{Binding FolderTypeLabel}"
                                                                              d:LayoutOverrides="Height" />
        </Border>
        <telerik:RadWrapPanel Grid.Row="1"
                              Margin="20,40,20,20">
            <Border BorderThickness="1"
                    Margin="20"
                    Padding="15,5,15,15"
                    HorizontalAlignment="Center"
                    Width="550"
                    MinHeight="200"
                    BorderBrush="Black">
                <Border.Effect>
                    <DropShadowEffect />
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FFCACACA"
                                      Offset="0" />
                        <GradientStop Color="White"
                                      Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <StackPanel Orientation="Vertical"
                            d:LayoutOverrides="Height">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition Width="3*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="79" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <StackPanel d:LayoutOverrides="Width"
                                    Grid.Column="1"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center">
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding VersionManageCategoryTitle}"
                                       FontWeight="Bold"
                                       FontSize="14.667"
                                       Margin="0,0,0,5" />
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding VersionManageCategoryDescription}"
                                       FontSize="13.333"
                                       FontStyle="Italic" />
                        </StackPanel>
                        <Image HorizontalAlignment="Center"
                               Source="/Rio.Manager.Application;component/Assets/Images/versions_category.png"
                               Width="50"
                               Margin="0"
                               VerticalAlignment="Center" />
                        <StackPanel Grid.Row="1"
                                    d:LayoutOverrides="Width"
                                    Margin="0,10,0,0"
                                    Grid.ColumnSpan="2">
                            <ListBox Margin="10,10,0,0"
                                     ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ItemTemplate="{StaticResource AdministrationMenuDataTemplate}"
                                     ItemsSource="{Binding VersionManageCategoryItems}"
                                     SelectedItem="{Binding VersionManageCategorySelectedItem, Mode=TwoWay}"
                                     Background="{x:Null}"
                                     BorderThickness="0"
                                     ItemContainerStyle="{StaticResource AdministrationMenuItemStyle}">
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="SelectionChanged">
                                        <mvvmLightCommand:EventToCommand Command="{Binding OpenNewTabCommand}"
                                                                         CommandParameterValue="VersionManageCategory" />
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </ListBox>
                        </StackPanel>
                    </Grid>
                </StackPanel>
            </Border>
            <!--<Border BorderThickness="1"
                    Margin="20"
                    Padding="15,5,15,15"
                    HorizontalAlignment="Center"
                    Width="550"
                    MinHeight="200"
                    BorderBrush="Black">
                <Border.Effect>
                    <DropShadowEffect />
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FFCACACA"
                                      Offset="0" />
                        <GradientStop Color="White"
                                      Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <StackPanel Orientation="Vertical"
                            d:LayoutOverrides="Height">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition Width="3*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="79" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <StackPanel d:LayoutOverrides="Width"
                                    Grid.Column="1"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center">
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding ItemsPlanCategoryTitle}"
                                       FontWeight="Bold"
                                       FontSize="14.667"
                                       Margin="0,0,0,5" />
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding ItemsPlanCategoryDescription}"
                                       FontSize="13.333"
                                       FontStyle="Italic" />
                        </StackPanel>
                        <Image HorizontalAlignment="Center"
                               Source="/Rio.Manager.Application;component/Assets/Images/items_plan_category.png"
                               Width="50"
                               Margin="0"
                               VerticalAlignment="Center" />
                        <StackPanel Grid.Row="1"
                                    d:LayoutOverrides="Width"
                                    Margin="0,10,0,0"
                                    Grid.ColumnSpan="2">
                            <ListBox Margin="10,10,0,0"
                                     ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ItemTemplate="{StaticResource AdministrationMenuDataTemplate}"
                                     ItemsSource="{Binding ItemsPlanCategoryItems}"
                                     Background="{x:Null}"
                                     BorderThickness="0"
                                     ItemContainerStyle="{StaticResource AdministrationMenuItemStyle}">
                                
                            </ListBox>
                        </StackPanel>
                    </Grid>
                </StackPanel>
            </Border>
            <Border BorderThickness="1"
                    Margin="20"
                    Padding="15,5,15,15"
                    HorizontalAlignment="Center"
                    Width="550"
                    MinHeight="200"
                    BorderBrush="Black">
                <Border.Effect>
                    <DropShadowEffect />
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FFCACACA"
                                      Offset="0" />
                        <GradientStop Color="White"
                                      Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <StackPanel Orientation="Vertical"
                            d:LayoutOverrides="Height">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition Width="3*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="79" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <StackPanel d:LayoutOverrides="Width"
                                    Grid.Column="1"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center">
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding RightsCategoryTitle}"
                                       FontWeight="Bold"
                                       FontSize="14.667"
                                       Margin="0,0,0,5" />
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding RightsCategoryDescription}"
                                       FontSize="13.333"
                                       FontStyle="Italic" />
                        </StackPanel>
                        <Image HorizontalAlignment="Center"
                               Source="/Rio.Manager.Application;component/Assets/Images/rights_category.png"
                               Width="50"
                               Margin="0"
                               VerticalAlignment="Center" />
                        <StackPanel Grid.Row="1"
                                    d:LayoutOverrides="Width"
                                    Margin="0,10,0,0"
                                    Grid.ColumnSpan="2">
                            <ListBox Margin="10,10,0,0"
                                     ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ItemTemplate="{StaticResource AdministrationMenuDataTemplate}"
                                     ItemsSource="{Binding RightsCategoryItems}"
                                     Background="{x:Null}"
                                     BorderThickness="0"
                                     ItemContainerStyle="{StaticResource AdministrationMenuItemStyle}">
                                
                            </ListBox>
                        </StackPanel>
                    </Grid>
                </StackPanel>
            </Border>-->
            <Border BorderThickness="1"
                    Margin="20"
                    Padding="15,5,15,15"
                    HorizontalAlignment="Center"
                    Width="550"
                    MinHeight="200"
                    BorderBrush="Black">
                <Border.Effect>
                    <DropShadowEffect />
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0.5,1"
                                         StartPoint="0.5,0">
                        <GradientStop Color="#FFCACACA"
                                      Offset="0" />
                        <GradientStop Color="White"
                                      Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
                <StackPanel Orientation="Vertical"
                            d:LayoutOverrides="Height">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70" />
                            <ColumnDefinition Width="3*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="79" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <StackPanel d:LayoutOverrides="Width"
                                    Grid.Column="1"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Center">
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding WorkflowCategoryTitle}"
                                       FontWeight="Bold"
                                       FontSize="14.667"
                                       Margin="0,0,0,5" />
                            <TextBlock TextWrapping="Wrap"
                                       Text="{Binding WorkflowCategoryDescription}"
                                       FontSize="13.333"
                                       FontStyle="Italic" />
                        </StackPanel>
                        <Image HorizontalAlignment="Center"
                               Source="/Rio.Manager.Application;component/Assets/Images/workflow_category.png"
                               Width="50"
                               Margin="0"
                               VerticalAlignment="Center" />
                        <StackPanel Grid.Row="1"
                                    d:LayoutOverrides="Width"
                                    Margin="0,10,0,0"
                                    Grid.ColumnSpan="2">
                            <ListBox Margin="10,10,0,0"
                                     ScrollViewer.VerticalScrollBarVisibility="Disabled"
                                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                     ItemTemplate="{StaticResource AdministrationMenuDataTemplate}"
                                     ItemsSource="{Binding WorkflowCategoryItems}"
                                     SelectedItem="{Binding WorkflowCategorySelectedItem, Mode=TwoWay}"
                                     Background="{x:Null}"
                                     BorderThickness="0"
                                     ItemContainerStyle="{StaticResource AdministrationMenuItemStyle}">
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="SelectionChanged">
                                        <mvvmLightCommand:EventToCommand Command="{Binding OpenNewTabCommand}"
                                                                         CommandParameterValue="WorkflowCategory" />
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </ListBox>
                        </StackPanel>
                    </Grid>
                </StackPanel>
            </Border>
        </telerik:RadWrapPanel>
    </Grid>
</UserControl>
